package com.sean.designpatterns.structure.proxy;

public class RealImage implements Image {

    private String fileName;

    public RealImage(String fileName) {
        this.fileName = fileName;
        loadFromFile(fileName);
    }

    @Override
    public void display() {
        System.out.println("display ");
    }

    private void loadFromFile(String fileName) {
        System.out.println("Load form fileName:" + fileName);
    }
}
